<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const p = new Promise((resolve, reject) => {
      setTimeout(() => {
        resolve('北京市')
      }, 2000)

    })
    p.then(res => {
      console.log(res)
      return new Promise((resolve, reject) => {
        setTimeout(() => {
          resolve('朝阳区')
        }, 2000)
      })
    }).then(res => {
      console.log(res)
      return new Promise((resolve, reject) => {
        setTimeout(() => {
          resolve('望京')
        }, 2000)
      })
    })
  </script>
</body>

</html>